<link href="<?php echo CSS_User_URL; ?> /Register_style.css" rel="stylesheet" type="text/css">               
<section id="sign_up_cover" class="cover center-child">
    <div class="home_article">
        <div id="sign_up_image" class="center-child">
            <img src="images/Icons/icon-Quick-Signup-light.png" alt="Ideawebsite.com">
        </div>
        <div id="sign_up_area">
            <h1 class="site_title">Đăng ký nhanh tài khoản</h1>
            <?php
            $form = $this->beginWidget('CActiveForm', array(
                'id' => 'register-form',
                'enableAjaxValidation' => true,
                'htmlOptions' => array(),
//                'enableClientValidation' => true,
//                'enableAjaxValidation' => TRUE,
                'clientOptions' => array(
                    'validateOnSubmit' => true,
                ),
            ));

//            echo $form->labelEx($model, 'username');
//            echo $form->textField($model, 'username', array('style' => 'width = 70%;'));
//            echo $form->error($model, 'username');
            ?>
            <div class="sign_up_field">
                <span class="sign_up_title">Email: </span>
                <div class="sign_up_value">
                    <?php echo $form->textField($model, 'email', array()); ?>
                </div>
                <span class="sign_up_status field_status"><?php echo $form->error($model, 'email'); ?></span>
            </div>
            <div class="sign_up_field">
                <span class="sign_up_title">Nhập lại email: </span>
                <div class="sign_up_value">
                    <?php echo $form->textField($model, 'email_r', array()); ?>
                </div>
                <span class="sign_up_status field_status"><?php echo $form->error($model, 'email_r'); ?></span>
            </div>
            <div class="sign_up_field">
                <span class="sign_up_title">Mật khẩu: </span>
                <div class="sign_up_value">
                    <?php echo $form->passwordField($model, 'password', array()); ?>
                </div>
                <span class="sign_up_status field_status"><?php echo $form->error($model, 'password'); ?></span>
            </div>
            <div class="sign_up_field">
                <span class="sign_up_title">Nhập lại mật khẩu: </span>
                <div class="sign_up_value">
                    <?php echo $form->passwordField($model, 'password_r', array('message' => 'Please select a value.')); ?>
                </div>
                <span class="sign_up_status field_status"><?php echo $form->error($model, 'password_r'); ?></span>
            </div>
            <div class="sign_up_field">
                <span class="sign_up_title"></span>
                <div class="sign_up_value">
                    <!--<input id="sign_up_condition" type="checkbox">-->
                    <?php echo $form->checkBox($model, 'accept', array('id' => 'sign_up_condition')); ?>
                    <label for="sign_up_condition">Tôi đã đọc các điều khoản.</label>
                </div>
                <span class="sign_up_status field_status"><?php echo $form->error($model, 'accept'); ?></span>
            </div>
            <!--            <div class="sign_up_field">
                            <span class="sign_up_title"></span>
                            <div class="sign_up_value">
            
                                <a href="#" class="button_base" id="sign_up_submit" ><span>Cập nhật</span></a>
            
            
                            </div>
                            <span class="sign_up_status"></span>
                        </div>-->
            <div class="sign_up_field">
                <span class="sign_up_title"></span>
                <div class="sign_up_value">
                    <?php echo CHtml::submitButton('Register', array('class' => 'button_base')); ?>
                </div>
                <span class="sign_up_status"></span>
            </div>

            <?php $this->endWidget(); ?>
        </div>

    </div>
</section>